#include<stdio.h>
#include<stdlib.h>
int main()
{
	int arr[10] = { 0 };
	int* p = (int*)malloc(40);
	if (p == NULL)
		return 1;
	else
	for (int i = 0; i < 10; i++)
	{
		*(p + i) = i + 1;
	}
	for(int i = 0;i < 10;i++)
	printf("%d ", *(p + i));
	free(p);
	p = NULL;
	return 0;
}